import Login from '../views/login/login.vue'
import Layout from '../layout/layout.vue'

const routes = [
    {
        path: '/login',
        component: Login,
        meta: {
            inMenu: false,
        }
    },
    {
        path: '/',
        component: Layout,
        redirect: '/work-bench',
        children: [
            {
                path: '/work-bench',
                component: () => import('../views/workbench/work-bench.vue'),
                meta: {
                    title: '工作台'
                }
            }
        ],
        meta: {
            title: '根节点'
        }

    },
    {
        path: '/signing-management',
        component: Layout,
        children: [
            {
                path: 'waite-signing',
                component: () => import('../views/signing-management/waite-signing.vue'),
                meta: {
                    title: '待处理签约'
                }
            },
            {
                path: 'record-signing',
                component: () => import('../views/signing-management/record-signing.vue'),
                meta: {
                    title: '签约记录'
                }
            },
            {
              path: 'particulars',
              component: () => import('../views/signing-management/particulars.vue'),
              meta: {
                  title: '详情记录'
              }
          },
          {
            path: 'redact',
            component: () => import('../views/signing-management/redact.vue'),
            meta: {
                title: '编辑详情'
            }
           },
           {
            path: 'approve',
            component: () => import('../views/signing-management/approve.vue'),
            meta: {
                title: '审核通过'
            }
           },
           {
            path: 'reject',
            component: () => import('../views/signing-management/reject.vue'),
            meta: {
                title: '驳回'
            }
           },
           {
            path: 'waite-signing',
            component: () => import('../views/signing-management/waite-signing.vue'),
            meta: {
                title: '返回'
            }
           },

        ],
        meta: {
            title: '签约管理'
        }

    },
    {
        path: '/service-management',
        component: Layout,
        children: [
            {
                path: 'waite-service',
                component: () => import('../views/service-management/waite-service.vue'),
                meta: {
                    title: '待处理服务'
                }
            },
            {
                path: 'record-service',
                component: () => import('../views/service-management/record-service.vue'),
                meta: {
                    title: '服务记录'
                }
            },
            {
                path: 'add-service',
                component: () => import('../views/service-management/add-service.vue'),
                meta: {
                    title: '新增'
                }
            },
            {
                path: 'details-service',
                component: () => import('../views/service-management/details-service.vue'),
                meta: {
                    title: '详情'
                }
            },
        ],
        meta: {
            title: '服务管理'
        }

    },
    {
        path: '/user-management',
        component: Layout,
        redirect: '/user-management/user-management',
        children: [
            {
                path: 'user-management',
                component: () => import('../views/user-management/user-management.vue'),
                meta: {
                    title: '居民管理'
                }
            },
            {
                path: 'user-add',
                component: () => import('../views/user-management/user-add.vue'),
                meta: {
                    title: '新建居民档案'
                }
            },
            {
                path: 'user-fash',
                component: () => import('../views/user-management/user-fash.vue'),
                meta: {
                    title: '完善居民档案'
                }
            },
            {
                path: 'user-qianyue',
                component: () => import('../views/user-management/user-qianyue.vue'),
                meta: {
                    title: '编辑签约信息'
                }
            },

        ],
        meta: {
            title: '居民管理'
        }

    },
    {
        path: '/data-management',
        component: Layout,
        children: [
            {
                path: 'institutions-management',
                component: () => import('../views/data-management/institutions-management.vue'),
                meta: {
                    title: '机构管理'
                }
            },
            {
                path: 'newjg',
                component: () => import('../views/data-management/newjg.vue'),
                meta: {
                    title: '新建机构'
                }
            },
            {
                path: 'group-management',
                component: () => import('../views/data-management/group-management.vue'),
                meta: {
                    title: '团队管理'
                }
            },
            {
                path: 'newtd',
                component: () => import('../views/data-management/newtd.vue'),
                meta: {
                    title: '新建团队'
                }
            },
            {
                path: 'doctor-management',
                component: () => import('../views/data-management/doctor-management.vue'),
                meta: {
                    title: '医生管理'
                }
            },
            {
                path: 'newys',
                component: () => import('../views/data-management/newys.vue'),
                meta: {
                    title: '新建医生信息'
                }
            },
            {
                path: 'service-pack-management',
                component: () => import('../views/data-management/service-pack-management.vue'),
                meta: {
                    title: '服务包管理'
                }
            },
            {
                path: 'new-add-service-item',
                component: () => import('../views/data-management/new-add-service-item.vue'),
                meta: {
                    title: '新增服务项目'
                }
            },
            {
                path: 'service-project-management',
                component: () => import('../views/data-management/service-project-management.vue'),
                meta: {
                    title: '服务项目管理'
                }
            },
            {
                path: 'service-package-details',
                component: () => import('../views/data-management/service-package-details.vue'),
                meta: {
                    title: '服务包详情'
                }
            },
            {
                path: 'new-add-service-package',
                component: () => import('../views/data-management/new-add-service-package.vue'),
                meta: {
                    title: '新增服务包'
                }
            }
        ],
        meta: {
            title: '资料管理'
        }

    },
    {
        path: '/data-statistics',
        component: Layout,
        children: [
            {
                path: 'data-profile',
                component: () => import('../views/data-statistics/data-profile.vue'),
                meta: {
                    title: '数据概况'
                }
            },
            {
                path: 'service-statistics',
                component: () => import('../views/data-statistics/service-statistics.vue'),
                meta: {
                    title: '服务业绩统计'
                }
            },
            {
                path: 'signing-statistics',
                component: () => import('../views/data-statistics/signing-statistics.vue'),
                meta: {
                    title: '签约业绩统计'
                }
            }
        ],
        meta: {
            title: '数据统计'
        }

    },

]

export default routes